package cn.itcast.wanxinp2p.consumer.agent;

import cn.itcast.wanxinp2p.api.account.model.DTO.account.AccountDTO;
import cn.itcast.wanxinp2p.api.account.model.DTO.account.AccountRegisterDTO;
import cn.itcast.wanxinp2p.common.domain.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("account-service")
public interface AccountFeign {
    @PostMapping("/account/l/accounts")
    public RestResponse<AccountDTO> add(@RequestBody AccountRegisterDTO accountRegisterDTO);
}